package cn.dac.entity.security;

import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class SysPermission implements Serializable {
    private static final long serialVersionUID = -5325876473117485132L;
    private String id;//主键.
    private String name;//名称.
    private String resourceType;//资源类型，[menu|button]
    private String url;//资源路径.
    private String permission; //权限字符串,menu例子：role:*，button例子：role:create,role:update,role:delete,role:view
    private String parentId; //父编号
    private String parentIds; //父编号列表
    private Boolean status = Boolean.FALSE;
    private Integer opened;
    private String icon;
    private List<SysRole> roles;
}
